﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Items_AddEditManufacturer : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    [System.Web.Services.WebMethod]
    public static void SaveManufacturer(ItemManufacturer manufacturer)
    {
        using (POSEntities db = new POSEntities())
        {
            try
            {
               
                manufacturer.EntryBy = 1;
                manufacturer.EntryDate = DateTime.Now;
                db.ItemManufacturers.Add(manufacturer);
                db.SaveChanges();

            }
            catch (Exception ex)
            {

            }

        }
    }
}